import request from '@/utils/request'

// 查询获取方式分类列表
export function listPointsAccess(query) {
  return request({
    url: '/points/pointsAccess/list',
    method: 'get',
    params: query
  })
}

// 查询获取方式分类详细
export function getPointsAccess(id) {
  return request({
    url: '/points/pointsAccess/' + id,
    method: 'get'
  })
}

// 新增获取方式分类
export function addPointsAccess(data) {
  return request({
    url: '/points/pointsAccess',
    method: 'post',
    data: data
  })
}

// 修改获取方式分类
export function updatePointsAccess(data) {
  return request({
    url: '/points/pointsAccess',
    method: 'put',
    data: data
  })
}

// 删除获取方式分类
export function delPointsAccess(id) {
  return request({
    url: '/points/pointsAccess/' + id,
    method: 'delete'
  })
}
